package com.hospital.model;

import java.time.LocalDateTime;

public class Appointment {
    private Long id;
    private Doctor doctor;
    private Patient patient;
    private LocalDateTime dateTime;
    private String status; // "SCHEDULED", "CANCELLED", "COMPLETED"

    public Appointment() {}

    public Appointment(Long id, Doctor doctor, Patient patient, LocalDateTime dateTime, String status) {
        this.id = id;
        this.doctor = doctor;
        this.patient = patient;
        this.dateTime = dateTime;
        this.status = status;
    }

    // Getters and Setters
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public Doctor getDoctor() { return doctor; }
    public void setDoctor(Doctor doctor) { this.doctor = doctor; }
    public Patient getPatient() { return patient; }
    public void setPatient(Patient patient) { this.patient = patient; }
    public LocalDateTime getDateTime() { return dateTime; }
    public void setDateTime(LocalDateTime dateTime) { this.dateTime = dateTime; }
    public String getStatus() { return status; }
    public void setStatus(String status) { this.status = status; }
}